<?php
namespace Admin\Controller;
use Think\Controller;
class AjaxController extends Controller{
  
   		      
        /**
            * undocumented function
            *
            * @return void
            * @author 
            **/
           function category()
           {
            if(IS_AJAX){
            $id = D('goods_category')->where('pid='.$_POST['id'])->select();
             
              echo json_encode($id);
            }
            }
                  /**
                    * undocumented function
                    *
                    * @return void
                    * @author 
                    **/
                    function lists()
                    {
                      if(IS_AJAX){
                    $nen = D('goods_category')->where('pid='.$_POST['id'])->select();
                    echo json_encode($nen);
                    }
                    }       

}